package com.zzx.demo.controll;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.zzx.api.IDemoService;



public class Consumer {
	public static void main(String[] args) {
		//测试常规服务
		ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("spring/consumer.xml");
        context.start();
        System.out.println("consumer start");
       IDemoService demoService = context.getBean(IDemoService.class);
        System.err.println("consumer");
        demoService.rtnTest("dubbo");
        System.err.println("***结束*****");
	}
}
